home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / escape.swf / scripts / frame_1 / PlaceObject2_151_69 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-23  |  955 b   |  50 lines

  1. onClipEvent(enterFrame){
  2.    if(_global.over == 0)
  3.    {
  4.       if(Key.isDown(40) && nop1 == 0)
  5.       {
  6.          if(nop3 <= 15)
  7.          {
  8.             nop3 += 1;
  9.             this._height += 4;
  10.             this._width += 3;
  11.             this._y += 5;
  12.          }
  13.       }
  14.       else if(nop3 > 0)
  15.       {
  16.          nop3 -= 1;
  17.          this._height -= 4;
  18.          this._width -= 3;
  19.          this._y -= 5;
  20.       }
  21.       if(_root.target_s == 2 && nop1 == 0 && key_push == 0 && nop3 == 0)
  22.       {
  23.          if(Key.isDown(32))
  24.          {
  25.             nop1 = 1;
  26.             tmp = _Y;
  27.          }
  28.       }
  29.       if(Key.isDown(32))
  30.       {
  31.          key_push = 1;
  32.       }
  33.       else
  34.       {
  35.          key_push = 0;
  36.       }
  37.       if(nop1 != 0)
  38.       {
  39.          t1 += 1.5;
  40.          _Y = _Y - (20 - 1 * t1);
  41.          if(_Y >= tmp)
  42.          {
  43.             _Y = tmp;
  44.             t1 = 0;
  45.             nop1 = 0;
  46.          }
  47.       }
  48.    }
  49. }
  50.